<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智慧人事决策系统 - 数据对比</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        :root {
            --primary-color: #1890ff;
            --menu-bg: #001529;
            --menu-text: #fff;
            --header-height: 64px;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f0f2f5;
        }
        
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: #fff;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 1px 4px rgba(0,21,41,.08);
            z-index: 1000;
        }
        
        .header-title {
            font-size: 20px;
            color: var(--primary-color);
            font-weight: 600;
        }
        
        .header-user {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .header-user img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
        }
        
        .sidebar {
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            width: 256px;
            background: var(--menu-bg);
            padding-top: var(--header-height);
            z-index: 100;
        }
        
        .sidebar-sticky {
            height: calc(100vh - var(--header-height));
            padding-top: 1rem;
            overflow-x: hidden;
            overflow-y: auto;
        }
        
        .nav-item {
            margin: 4px 0;
        }
        
        .nav-link {
            color: var(--menu-text) !important;
            padding: 12px 24px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }
        
        .nav-link:hover, .nav-link.active {
            background: rgba(255,255,255,0.1);
            color: var(--primary-color) !important;
        }
        
        .nav-link i {
            width: 16px;
            text-align: center;
        }
        
        .main-content {
            margin-left: 256px;
            margin-top: var(--header-height);
            padding: 24px;
            min-height: calc(100vh - var(--header-height));
        }
        
        .card {
            background: #fff;
            border-radius: 4px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.03);
            border: none;
        }
        
        .card-header {
            background: #fff;
            border-bottom: 1px solid #f0f0f0;
            padding: 16px 24px;
        }
        
        .table {
            margin-bottom: 0;
        }
        
        .table th {
            background: #fafafa;
            font-weight: 500;
            color: rgba(0,0,0,0.85);
        }
        
        .table td, .table th {
            padding: 16px;
            border-color: #f0f0f0;
        }
        
        .table-hover tbody tr:hover {
            background-color: #fafafa;
        }
        
        .badge {
            padding: 4px 8px;
            border-radius: 2px;
            font-weight: normal;
        }
        
        .btn {
            height: 32px;
            padding: 0 16px;
            border-radius: 2px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            font-weight: 400;
            transition: all 0.3s;
        }
        
        .btn-info {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        .btn-info:hover {
            background-color: #40a9ff;
            border-color: #40a9ff;
        }
        
        .modal-content {
            border-radius: 4px;
            border: none;
        }
        
        .modal-header {
            padding: 16px 24px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .modal-body {
            padding: 24px;
        }
    </style>
</head>
<body>
    <header class="header">
        <div class="header-title">
            <i class="fas fa-chart-line me-2"></i>
            智慧人事决策系统 - 数据对比
        </div>
        <div class="header-user">
            <i class="fas fa-user-circle"></i>
            <span>admin</span>
        </div>
    </header>

    <div class="container-fluid">
        <div class="row">
            <nav class="sidebar">
                <div class="sidebar-sticky">
                    <ul class="nav flex-column">
                        <li class="nav-item">
                            <a class="nav-link active" href="/compare/profile">
                                <i class="fas fa-chart-bar"></i>
                                个人画像及组织分析
                            </a>
                        </li>
                    </ul>
                </div>
            </nav>

            <main class="main-content">
                {% block content %}{% endblock %}
            </main>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
